package demo1;

class ProjectManager extends Employee {


    private double bonus;

    @Override
    public void work() {
        super.work();
        System.out.println("奖金：" + bonus + "元");
    }

    public ProjectManager(String name, String employeeNumber, double salary, double bonus) {
        super(name, employeeNumber, salary);
        this.bonus = bonus;
        System.out.println("创建项目经理对象：" + name);

    }
}
